get any random item in array c#

100

random value in array c# -

 Random random = new Random();
 int value = random.Next(0, array.Length);
 Console.Write(array[value]);

Comments

Submit
0 Comments